<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script type="text/javascript">
    document.write("初学JavaScript");
    document.write("<h1>Hello，JavaScript</h1>");

    try{
      let x=10/0
    }catch (error){
      console.log(error);
    }finally{
      console.log("finally");
    }

    console.log("after finally");//代码会执行
  </script>

  <title>Document</title>
</head>
<body>
  
</body>
</html>